package main

import (
	"bufio"
	"os"
)

/*
@author: wy
@file: 字符串反转.py
@time: 2023/11/16 17:03
*/
func main() {
	line := bufio.NewReader(os.Stdin)
	str1, _ := line.ReadString('\n')
	ptr := len(str1) - 2
	var str2 [200]string

	for _, i := range str1 {
		ptr = ptr - 1
		str2[ptr] = string(i)
		if ptr == 0 {
			break
		}
	}
	for j := 0; j < len(str2); j++ {
		print(str2[j])
	}

}
